{extend name="../front" /}
{block name="head"}
<title>积分记录－{:config('site.title')}</title>
{/block}
{block name="main"}
<main class="container">
  {include file='navbar' /}
  <div class="card">
    <div class="card-body pb-0">
      <div class="card-title fw-bold mb-3">最近100条积分记录</div>
      <table class="table table-bordered table-striped table-hover text-center">
        <thead>
          <tr>
            <th>序号</th>
            <th>积分名称</th>
            <th>积分数值</th>
            <th>操作类型</th>
            <th>操作时间</th>
            <th>操作IP</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="item"}
          <tr>
            <td>{$i}</td>
            <td>{$item.log_name}</td>
            <td>{$item.log_value}</td>
            <td>{eq name="item.log_type" value="inc"}<span class="text-primary">增加</span>{else/}<span class="text-danger">减少</span>{/eq}</td>
            <td>{$item.log_time|date='Y-m-d H:i:s'}</td>
            <td>{$item.log_ip}</td>
          </tr>
          {/volist}
        </tbody>
      </table>
    </div>
  </div>
</main>
{/block}